# -*- coding:utf-8 -*-
# __author__ : "张百科"
# Date: 2021/1/26 10:13
# File: notice.py
# IDE: PyCharm
from django.db import models
from utils.common import prefix

class Notice(models.Model):
    id = models.AutoField(db_column='ID', primary_key=True)  # Field name made lowercase.
    title = models.CharField(max_length=199)
    content = models.CharField(max_length=1000)
    is_delete = models.IntegerField(default=0)
    is_top=models.IntegerField(default=1)
    read_count=models.IntegerField(default=0)

    class Meta:
        managed = False
        db_table =prefix+ 'notice'